# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=corebird
pkgver=1.7.4
pkgrel=0
pkgdesc="Corebird is a modern, easy and fun Twitter client"
url="https://corebird.baedert.org/"
arch="all"
license="GPL-3.0"
makedepends="gtk+3.0-dev rest-dev json-glib-dev sqlite-dev libsoup-dev libgee-dev
		vala tiff automake autoconf libtool intltool glib-dev libxml2-utils file"
options="libtool !check"
subpackages="$pkgname-lang $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/baedert/$pkgname/archive/$pkgver.tar.gz
		disable-gst-check.patch"
builddir=${srcdir}/${pkgname}-${pkgver}

prepare() {
	cd "$builddir"
	NOCONFIGURE=yes ./autogen.sh
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--disable-video \
		--disable-gst-check \
		--disable-spellcheck
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="7e88f73ef1fc36379172d30251065e7ee3df54eabfaf954015ed4e739c5ad2b1821b43a07e66bb9363b7daa59b5e981d459a4aef87be8a3dd80a7ed41e37e582  corebird-1.7.4.tar.gz
ce31141924a58b9081453b4c9490b22f2d039624a8f06d8f9418c5b8581cb8443a57db304d1112331dda547905cbe3df0c26f08f62ff78a2b210465fc3506e94  disable-gst-check.patch"
